#ifndef USERRELATIONDATABASE_H
#define USERRELATIONDATABASE_H

#include "Database.h"

#include <QList>

/*!
 * @addtogroup Database
 * @{
 * @class UserRelationDatabase
 * @brief Manages relationships between users (e.g. patients of a nurse).
 *
 * The UserRelationDatabase stores simple relationships between users.
 * @}
 */

class UserRelationDatabase : protected Database
{
public:
    UserRelationDatabase();

    const static int RELATION_ALREADY_EXISTS = -2;

    int addRelation(int userId, int userIdRelated);

    void loadRelatedUsers(int userId);
    QList<int> * getRelatedList();

private:
    QList<int> userIds;
};

#endif // USERRELATIONDATABASE_H
